package com.feiyu.aop;


import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;


/**
 * 切面表达式执行的顺序
 */
@Slf4j
@Aspect
@Component
public class MyAspect {

    @Pointcut("execution(void com.feiyu.service.impl.DeptServiceImpl.delete(java.lang.Integer))")
    public  void pt(){}

    @Before("pt()")
    public  void  before(){

        log.info("before");
    }


}
